Hi Sam,
There is an initalization function in the Interpreter called
InitializeInterpreter()
This initializes the interpreter including reading the Settings and Variables. This is what the Restart Option calls. To ensure the interpreter is at least initialized once the Interpreter also has a flag called m_InitializeOnExecute that is set until the
Interpreter is initialized. If the Interpreter has never been initialized a call to
InitializeInterpreter() will be made on the first Execution regardless of the Restart Option parameter.
I suppose you are trying to override the normal Initialization process. In that case you might call InitializeInterpreter() before doing your overrides.
You can also query the flag with Get_InitializeOnExecute()
Regarding "Bad setup file format": that would normally indicate the Setup File Format is bad. The expected format is any number of lines of "Header", followed by a blank line, followed by the attribute lines. The interpreter may be picky about the blank line.
It should be a new line character only. You might try using one of our example Setup Files to see if it also causes an error. Or step through the function read_setup_file() to see exactly what the problem is.
HTH
Regards
TK